package ubadb.core.components.bufferManager.bufferPool.replacementStrategies.lru;

import ubadb.core.common.Page;
import ubadb.core.components.bufferManager.bufferPool.BufferFrame;
import ubadb.core.exceptions.BufferFrameException;
import java.util.Date;

public class LRUBufferFrame extends BufferFrame 
{
	private Date useDate;
		
	public LRUBufferFrame(Page page) {
		super(page);		
		useDate = new Date();
	}

	public void unpin() throws BufferFrameException
	{
		super.unpin();
		useDate = new Date();
	}

	public Date getUseDate() {
		return useDate;
	}

}
